<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="g" uri="/g-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>组织管理</title>
<jsp:include page="../include/edit_meta.jsp"></jsp:include>
<script>
	$(function(){
		$("#inputForm").validate();
	});
</script>
</head>
<body>
<div class="panel_body" id="panel_body">
	<div class="blankbar ml-10"> » 系统设置</div>
	<div id="msg"><g:message/></div>
	<div class="toolbar">
	    <div class="toolgrp fl">
	    	<div class="tool_btn">
	    		设置分类
	        </div>
	    </div>
	</div>
	
	<div class="form_wrap_fl">
		<s:iterator value="settingGroupList">
		<div class="form_item">
	        <a href="setting!main.shtml?settingGroup.id=${id }">${title }</a>
	    </div>
	    </s:iterator>
	</div>
	<div class="toolbar">
	    <div class="toolgrp fl">
	    	<div class="tool_btn">
	    		系统设置参数项
	        </div>
	    </div>
	</div>
	<div class="grid" id="grid">
	
		<table>
	        <tr>
	            <td style="margin:0;padding:0;border:0px solid #aaa;" valign="top">
					<table>
					    <thead>
					        <tr>
					            <th>名称</th>
					            <th>参数值</th>
					        </tr>
					    </thead>
					    <tbody>
					    	<s:iterator value="settingList">
					        <tr>
					            <td>
									<a href="setting!main.shtml?settingGroup.id=${settingGroup.id }&setting.id=${id }">${title }</a>
								</td>
					            <td>${value }</td>
					        </tr>
					        </s:iterator>
					    </tbody>
					</table>
				</td>
				<s:if test="setting != null">
				<td style="border-top:0px solid #aaa;" valign="top" valign="top">
					
					<form action="setting!update.shtml" id="inputForm" method="post">
						<input type="hidden" name="setting.id" value="${setting.id }" />
						请做适当修改<br/><br/>

						<b>${setting.title }</b><br/>
						${setting.description }<br/>
						${formHtml }
						<br/>
						<br/>
						<input type="submit" value="更新" />
					</form>
				</td>
				</s:if>
	        </tr>
	        
		</table>
		
		
	</div>
		
</div>
</body>
</html>
